<template>
	<view class="img-cont">
		<image class="img" :src="imgPath" mode="widthFix"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imgPath: '',
				// imgPath: 'https://exp-picture.cdn.bcebos.com/2a1ecb460596b814e9fce0b043d246fe464e2283.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fquality%2Cq_80'
			}
		},
		onLoad(option) {
			if (option.imgPath) {
				this.imgPath = decodeURIComponent(option.imgPath)
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.img-cont {
		width: 100%;
		overflow: hidden;
	}
	.img {
		width: 100%;
		display: block;
	}
</style>
